package com.smsclient.init;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;


@Component
public class ApplicationInitRunner implements ApplicationRunner {

    /**
     * 公共处理类
     */
    @Autowired
    private CommonFacade commonFacade;
    
    @Override
    public void run(ApplicationArguments args) throws Exception {
        // 初始化字典项
        this.commonFacade.initDict();
    }

}
